<script>
import { defineComponent, getCurrentInstance } from "vue";

export default defineComponent({
  props: {
    that: Object,
  },
  setup(props) {
    return { that: props.that };
  },
  render() {
    let that = this.that;
    return (
      <div class="styleValue">
        <a-popconfirm
          title="确定删除组件？"
          onConfirm={() => {
            this.$store.commit("deleteComponent", {
              that: this.fa_this,
              sort: this.$store.state.aimAttrs.sort
                ? this.$store.state.aimAttrs.sort
                : false,
            });
          }}
        >
          <a-button danger block>
            删除组件
          </a-button>
        </a-popconfirm>
      </div>
    );
  },
});
</script>
